package com.example.s3demo.model

data class Result(
    var code: Int = 0,
    var msg: String? = null,
    var data: Any? = null,
) {

    companion object {
        fun okResult(): Result {
            val result = Result()
            result.code = 0
            result.msg = "success"
            return result
        }

        fun errorResult(): Result {
            val result = Result()
            result.code = -1
            result.msg = "fail"
            return result
        }
    }
}